package com.hq.sys.service;

import com.hq.sys.eneity.Menu;
import com.hq.sys.eneity.Role;
import com.hq.sys.eneity.RoleVo;
import com.hq.sys.util.DataGridView;

import javax.xml.crypto.Data;
import java.util.List;

public interface RoleService {
    //查询所有可用菜单
    public DataGridView initRoleMenuTreeList(Integer roleid);
    //根据mid查询菜单
    public Role queryMenuByMid(Integer mid);
    //查看所有菜单
    public DataGridView queryAllMenuForList(RoleVo roleVo);
    //添加角色
    public int addRole(RoleVo roleVo);
    //修改角色
    public int updateRole(RoleVo roleVo);
    public int deleteRole(Integer id);
    //批量删除
    public int deleteBatchRole(Integer[] ids);
    //分配菜单
    public int saveRoleMenu(RoleVo roleVo);
}
